package test.action;

import m.common.action.ActionRequest;
import m.common.action.RequestMethod;
import m.system.cache.CacheUtil;
import m.system.util.JSONMessage;
import test.model.SchoolRoom;

@ActionRequest(name="test/school/room",description = "班级action")
public class SchoolRoomAction extends BaseAction{


    @RequestMethod
    public JSONMessage list(String grade){
        return JSONMessage.success("查询成功")
            .push("list", CacheUtil.getList(SchoolRoom.class,grade));
    }
}
